#include "ConstantFloat.h"
#include <iostream>
using namespace std;
CConstantFloat::CConstantFloat(void):m_defaultValue(0), m_betweenTimeValue(1), m_time(this, 0), m_previousTime(-1)
{}

void CConstantFloat::doUpdate()
{
	if(m_time.getValue()>0 && m_time.getValue()!=m_previousTime)
	{
		m_previousTime=m_time.getValue();
		setValue(m_betweenTimeValue);
	}
	else
		setValue(m_defaultValue);
}

